Fix typed throws testing crash#414
Conversation
WalkthroughDocumentation removed typed-throws workarounds; tests refactored to use direct Changes
Sequence Diagram(s)sequenceDiagram
participant Test as Test Case
participant Expect as #expect(throws:)
participant SUT as System Under Test (function)
Note over Test,Expect: New flow — capture thrown error directly
Test->>Expect: await #expect(throws: ErrorType.self) { call SUT() }
Expect->>SUT: invoke SUT()
SUT-->>Expect: throws ARTErrorInfo / Error
Expect-->>Test: returns thrownError
Test->>Test: assert thrownError == expected / isChatError(...)
note right of Test: simplifies from prior nested closure + nested expect pattern
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (5)
💤 Files with no reviewable changes (1)
🚧 Files skipped from review as they are similar to previous changes (2)
🧰 Additional context used📓 Path-based instructions (1)Tests/AblyChatTests/**/*.swift📄 CodeRabbit inference engine (CLAUDE.md)
Files:
🧬 Code graph analysis (2)Tests/AblyChatTests/DefaultMessagesTests.swift (4)
Tests/AblyChatTests/DefaultPresenceTests.swift (5)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (11)
🔇 Additional comments (12)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
bbcc60e to
103a812
Compare
Resolves #233.
5624f13 to
9172453
Compare
Resolves #233.
Summary by CodeRabbit
Documentation
Tests